<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()	+ path + "/";
	request.setCharacterEncoding("UTF-8");
	response.setContentType("text/html;charset=UTF-8");
%>
<jsp:include page="changePwd.jsp" flush="true"/>
<script type="text/javascript">
	var ctx="<%=path%>";  
</script>
<link rel="stylesheet" href="<%=path%>/css/glsmcx.css" type="text/css" />
<link rel="stylesheet" href="<%=path%>/css/upload.css" type="text/css" >
<script type="text/javascript" src="<%=path%>/js/controllers/orderrefundCtrl.js"></script>

<input type="hidden" id="isInterior" value="${_user_supplier.isInterior}" />
<div class="glsmcxWrap">
	<div class="container-fluid">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">退款订单列表</h3>
			</div>
			<input id="queryType" value="ht" style="display:none;"></input>
			<div class="panel-body clearfix">
				<form method="post" action="#" class="form-horizontal" role="form">
					<!-- 查询开始 -->
					<div class="form-group">
						<div class="col-lg-31 clearfix">							
						<label class="control-label labelPart">订单号：</label>
							<div class="colPart">
								<input type="text" class="input-sm form-control" id="orderId" placeholder="输入订单号">
							</div>
						</div>			
							
						<div class="col-lg-31 clearfix">						
						<!-- 退款状态，1待退款，2退款中，3退款完成，4退款失败 -->	
							<label class="control-label labelPart">退款状态：</label>							
							<div class="colPart">
								<select name="refundStatus">
									<option value="">请选择</option>
									<option value="1">待退款</option>
									<option value="2">退款中</option>
									<option value="3">退款完成</option>
									<option value="4">退款失败</option>
								</select>
							</div> 						
						</div>  
						
						<!-- <div class="col-lg-31 clearfix">						
						审核状态，1待审核，2审核通过，3审核不通过	
							<label class="control-label labelPart">审核状态：</label>							
							<div class="colPart">
								<select name="auditStatus">
									<option value="">请选择</option>
									<option value="1">待审核</option>
									<option value="2">审核通过</option>
									<option value="3">审核不通过</option> 
								</select>
							</div> 						
						</div>   -->
						 
						 
						<div class="col-lg-34 more clearfix"> 													
							<button type="button" class="searchBtn">查询</button>	
							<button type="button" class="clearBtn">清空</button>					
						</div>
					</div> 
					<div class="table-responsive">
						<table class="table table-bordered check left">
							<thead>
								<tr> 
									<th>序号</th>
									<th>订单号</th> 
									<!-- <th>审核状态</th> -->
									<th>退款状态</th>  
								    <th>退款类型</th>
								    <th>退款金额</th> 
								    <th>退款原因</th>  
								    <th>退款备注</th>
								    <th>申请时间</th>
								    <th>退款时间</th> 
								    <th></th> 
								</tr>
							</thead>
		
							<tbody id="dataBody">
								 
							</tbody>
						</table>
						
						<table class="table2excel table table-bordered hide">
						</table>
					</div>
				</form>
			</div>
		</div>
		<div class="clearfix pageBottom">	
			<div class="record-wrapper page" role="status" aria-live="polite">
				当前<span class="pageNo"> </span>/<span class="totalPages"> </span>页，每页
				<label class="inline">
					<select name="dataTable_length" 
						class="form-control input-sm setTableLength" aria-controls="dataTable">
						<option selected="selected" value="10">10</option>
						<option value="20">20</option>
						<option value="50">50</option>
						<option value="100">100</option>
						<option value="200">200</option>
						<option value="300">300</option>
						<option value="400">400</option>
						<option value="500">500</option>
						<option value="1000">1000</option>
				</select> 
				</label>&nbsp;条记录,共<span class="record-wrapper totalCount">0</span>条记录
			</div>
			<nav>
			<!-- 这里显示分页 -->
				<div id="Pagination" class="pagination"></div>
			</nav>
		</div>
			
	</div>
</div>

<!-- 订单审核s -->
<div class="modal fade modal-audit-orderrefund modal-detail" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content"> 
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
				</button>
				<h4 id="myModalLabel">退款订单审核</h4>
			</div>
			<div class="modal-body">
				<form class="form-horizontal" novalidate="novalidate" id="auditOrderRefundForm"> 
				<input type="hidden" name="id" />
				<div class="form-group">
					<div class="col-lg-61">
							<label class="col-sm-41 control-label" id="orderid-label">订单号：</label>
							<div class="col-sm-81">
								<input type="hidden" class="form-control input-sm" name="id">
								<input type="text" readonly="readonly" class="form-control input-sm" name="orderId">
							</div>
						</div>
					</div>	 
				
				<div class="form-group">
					<div class="col-sm-161">
						<label class="col-sm-41 control-label">退款备注：</label>
						<div class="colPart6 dropdown">	
							<input type="text"  style="height:40px" name="remark" class="input-sm form-control" placeholder="请输入退款备注">	 
						</div> 
					</div>
				</div> 
			</form> 
			</div>
			<div class="modal-footer"> 
				<span  class="errorMsg red"></span> 
				<button type="button" class="btn btn-success" id="btn_audit_pass">通过</button>
				<button type="button" class="btn btn-danger" id="btn_audit_notpass">不通过</button>
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
			</div>	 
		</div>	 
	</div>
			
</div>
<!-- 订单审核e -->
